package cn.bby.query.server.infrastructure.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * @author ben
 * @since 2025/4/26 14:46
 */
public interface DataListener extends ApplicationListener<ContextRefreshedEvent> {

    @Override
    default void onApplicationEvent(ContextRefreshedEvent event) {
        init();
    }

    default void init() {
    }
}
